﻿namespace Digitalmes.WebApi.Infrastructure.Jwt;

/// <summary>
/// JWT Token 数据
/// </summary>
public sealed class JwtToken
{
    /// <summary>
    /// 用户 Id
    /// </summary>
    public long UserId { get; set; }

    /// <summary>
    /// 用户账号
    /// </summary>
    [NotNull]
    public string? Username { get; set; }

    /// <summary>
    /// 角色集合
    /// </summary>
    public string[] Roles { get; set; } = [];

    /// <summary>
    /// 住户 Id
    /// </summary>
    public long TenantId { get; set; }
}
